package com.ji.gametest.apply;


import com.ji.gametest.Impl.GameStandardImpl;
import lombok.extern.slf4j.Slf4j;
import com.ji.gametest.interfaceDefine.GameStandard;
import java.util.Random;
import java.util.Scanner;
@Slf4j
public class gametest{
    public static void main(String[] args) {
        GameStandardImpl standard=new GameStandardImpl();

        log.info("请输入进行几次");
        Scanner in=new Scanner(System.in);
        int i=0;
        int number=in.nextInt();
        for(i=1;i<=number;i++){
            Random random=new Random();
            int computer =random.nextInt(3);
            log.info("剪刀-0，石头-1，布-2");
            log.info("现在进行第"+i+"次");
            Scanner input = new Scanner(System.in);
            int person=input.nextInt();
            computer =random.nextInt(3);
            standard.gamestandard(person,computer);

        }
    }
}


